package general.appClass;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class MiniApp extends HttpServlet {
	/**
	 * 
	 */
	private static final long serialVersionUID = -5690868586339861557L;

	protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		this.doPost(request,response);
	}

	/**
	 * @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response)
	 * Set DB-Mode between "sql" and "db4o" in session
	 */
	protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		boolean mini=Boolean.parseBoolean(request.getParameter("mini"));
		request.getSession().setAttribute("mini", mini);
	}

}
